package com.jx.springcloud.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

@Component
//@FeignClient(value = "HYSTRIX-PAYMENT9001",fallback = ComsumerServoceHandler.class)
@FeignClient(value = "HYSTRIX-PAYMENT9001")
public interface ComsumerService {

    @GetMapping(value = "/paymentOK")
     String paymentOK();

    @GetMapping(value = "/paymentlayer")
     String paymentlayer();

}
